package com.wcbtest.dem02.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "内存信息")
public class MemoryInfo {

    @ApiModelProperty(value = "总内存(MB)", example = "16384")
    private long totalMemory;

    @ApiModelProperty(value = "已用内存(MB)", example = "8192")
    private long usedMemory;

    @ApiModelProperty(value = "空闲内存(MB)", example = "8192")
    private long freeMemory;

    @ApiModelProperty(value = "缓冲/缓存内存(MB)", example = "2048")
    private long bufferCache;

    @ApiModelProperty(value = "可用内存(MB)", example = "10240")
    private long availableMemory;

    @ApiModelProperty(value = "总交换空间(MB)", example = "2048")
    private long totalSwap;

    @ApiModelProperty(value = "已用交换空间(MB)", example = "0")
    private long usedSwap;

    @ApiModelProperty(value = "空闲交换空间(MB)", example = "2048")
    private long freeSwap;
}    